var dx = 0.95;
	var scale = 1.05;
	var x = 0;
	var larg = 0;     
	var tamImg = 1606;
	var posicao = 0;
	var posicao2 = -1606;
	var canvas = document.getElementById('myCanvas');
	var ctx = document.getElementById('myCanvas').getContext('2d');
	var image = new Image();
	image.src = './js/canvas/imagensFilmes.png';

	function Draw_1(tamImg) {
            ctx.drawImage(image,posicao,0);
	    posicao = posicao+dx;
	    if( posicao >= tamImg )
	    {
		posicao = - tamImg +dx;
	    }	
	}

	function Draw_2(tamImg) {
            
	    if(posicao2 >= tamImg)
	    {
		posicao2 = -1606;
	    }
	    else{
		posicao2 = posicao2 + dx;
	    }
            ctx.drawImage(image, posicao2,0);
	}
        
	function Clear() {
	    ctx.rect(0, 0, ctx.canvas.width ,100);
            ctx.fillStyle="rgba(29, 8, 95, 0.75)";
	}
        
	function Begin() {
	    larg = ctx.canvas.width=window.innerWidth;    
	    return setInterval(Atualizar, 20);
	}
        
	function Atualizar() {
	    Clear();
	    Draw_2(tamImg);
	    Draw_1(tamImg);
	}
	Begin();